STEP 11: Time for our last if-statement!

  • Create a new if statement statement at the bottom of your program.
  • Change the test variable from choice to rand_answer and the test value from "yes" to 4.
  • Drag in Say and drop it inside your if statement.
  • Change the name in front of .say() from sprite to tim and the string to "Signs point to yes".

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)